package org.example.myleet.p640;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("x=1".equals(solution.solveEquation("-x=-1")));
        Assert.isTrue("x=2".equals(solution.solveEquation("x+5-3+x=6+x-2")));
        Assert.isTrue("No solution".equals(solution.solveEquation("x+5-3+x=6-x-2")));
        Assert.isTrue("x=0".equals(solution.solveEquation("2x=x")));
        Assert.isTrue("Infinite solutions".equals(solution.solveEquation("x=x")));
        Assert.isTrue("No solution".equals(solution.solveEquation("x=x+2")));
    }
}
